import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';

import 'autophone_platform_interface.dart';

/// An implementation of [AutophonePlatform] that uses method channels.
class MethodChannelAutophone extends AutophonePlatform {
  /// The method channel used to interact with the native platform.
  @visibleForTesting
  final methodChannel = const MethodChannel('autophone');

  @override
  Future<String> phoneAuto() async {
    final version = await methodChannel.invokeMethod<String>('phoneAuto');
    return version!;
  }
}
